package com.doeis.uwork.entity.mongo;

import java.sql.Timestamp;

import com.voland.core.annotation.Table;
import com.voland.core.db.Entity;

@Table(name="mina_session_log")
public class MinaSessionLog extends Entity  {
	
	private String id;
	private String user_id;
	private int status;//状态  1 created 2 open  3 用户登录 4 colse 5 idle
	
	private String sessionid;
	private String serviceName;
	
	/** The Session creation's time */
    private  long creationTime;
    
    private long lastReadTime;

    private long lastWriteTime;
    
    /**
     * Returns the socket address of remote peer.
     */
    private String remoteIp;
    private int remotePort;
    
    /**
     * Returns the socket address of local machine which is associated with this
     * session.
     */
    private String localIp;
    private int localPort;
    
    
    private Timestamp created_at;


	public String getId() {
		return id;
	}


	public String getUser_id() {
		return user_id;
	}


	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public int getStatus() {
		return status;
	}


	public void setStatus(int status) {
		this.status = status;
	}


	public String getSessionid() {
		return sessionid;
	}


	public void setSessionid(String sessionid) {
		this.sessionid = sessionid;
	}


	public String getServiceName() {
		return serviceName;
	}


	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}


	public long getCreationTime() {
		return creationTime;
	}


	public void setCreationTime(long creationTime) {
		this.creationTime = creationTime;
	}


	public long getLastReadTime() {
		return lastReadTime;
	}


	public void setLastReadTime(long lastReadTime) {
		this.lastReadTime = lastReadTime;
	}


	public long getLastWriteTime() {
		return lastWriteTime;
	}


	public void setLastWriteTime(long lastWriteTime) {
		this.lastWriteTime = lastWriteTime;
	}


	public String getRemoteIp() {
		return remoteIp;
	}


	public void setRemoteIp(String remoteIp) {
		this.remoteIp = remoteIp;
	}


	public int getRemotePort() {
		return remotePort;
	}


	public void setRemotePort(int remotePort) {
		this.remotePort = remotePort;
	}


	public String getLocalIp() {
		return localIp;
	}


	public void setLocalIp(String localIp) {
		this.localIp = localIp;
	}


	public int getLocalPort() {
		return localPort;
	}


	public void setLocalPort(int localPort) {
		this.localPort = localPort;
	}


	public Timestamp getCreated_at() {
		return created_at;
	}


	public void setCreated_at(Timestamp created_at) {
		this.created_at = created_at;
	}
    
    
	
}
